﻿<ul class="details" id="ulProfile">
    
</ul>
<script>
    $(function() {
        var profile = new Profile();
        profile.getProfile(function(back) {
            var str = "";
            $('#ulProfile').html("");
            $.each(back, function(i, item) {
                if (item.Link === null || item.Link == "") {
                    str = "<li><span>"+item.Field+"</span>"+item.Value+"</li>";
                } else {
                    str = "<li><span>" + item.Field + "</span><a href='" + item.Link + "'>" + item.Value + "</a></li>";
                }
                $('#ulProfile').append(str);
            });
        });
    });       

 </script>